/*
 * @(#)Hello.java	2016-10-31 上午10:50:44
 *
 * Copyright 2016 www.ifood517.com. All rights reserved.
 * www.ifood517.com PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package test;

/**
 * 
 * 
 * @version V1.0.0, 2016-10-31
 * @author Administrator
 * @since V1.0.0
 */
public class Hello {

	public static void main(String[] args) {
		System.out.println("BX1482308173239513".length());
		String ss = "saleOut*1#4-BX1482308173239513@000102-64-50-1";
		String[] arr=ss.split("\\*");
		System.out.println(arr[1]);
		System.out.println(ss.substring(ss.indexOf("*")+1));
		System.out.println("1#4-BX1482308173239513".split("-")[1].length());
		System.out.println(Integer.valueOf("0", 2));
		System.out.println(3 >> 1);
//		String a= "abc"; String b = "abc"; 
//		System.out.println(a.hashCode());
//		System.out.println(b.hashCode());
//		FatherClass fc = new FatherClass();
//		ChildClass cc = new ChildClass();
		
		Thread t = new Thread() {

			public void run() {
				try {
					sleep(1000);
				} catch (InterruptedException e) {
				}
				pong();
			}
		};

		t.run();
		t.start();
		System.out.print("ping");
	}

	static void pong() {
		System.out.print("pong");
	}
}

class FatherClass {
	public FatherClass() {
		System.out.println("FatherClass Create");
	}
}

class ChildClass extends FatherClass {
	public ChildClass() {
		System.out.println("ChildClass Create");
	}
}